#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>

class FileReverseThread;

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

signals:
    void sendFilePath(QString path);

public slots:
    void setWorkDir();
    void reveiveFilePath(QString path);


private:
    Ui::MainWindow *ui;
    QString        _workdir;
    FileReverseThread* _reverseThread;
    int             _counter;
    QString         _preDir;            ///上次打开的目录
};
#endif // MAINWINDOW_H
